{extend name='admin@main'}
{block name="content"}
<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card'
      autocomplete="off">
    <div class="layui-card-body think-box-shadow padding-left-40">
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">名称</span>
                <input name="name" required class="layui-input" placeholder="请输入名称" value="{$info.name}">
                <input type="hidden" name="id" value="{$info.id}">
                <input type="hidden" name="_csrf_" value="{:systoken('edit')}">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">标识</span>
                <input name="url" required class="layui-input" placeholder="请输入标识" value="{$info.name2}" readonly>
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">名称</span>
                <input name="username" class="layui-input" placeholder="请输入名称" value="{$info.username}">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">代码</span>
                <input name="usercode" class="layui-input" placeholder="请输入代码" value="{$info.usercode}">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">ico</span>
                <input type="hidden" name="ico" value="{$info.ico}" readonly>
                <img src="{$info.ico}" alt="" width="50">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">最小金额</span>
                <input name="min" required class="layui-input" placeholder="请输入最小金额" value="{$info.min}">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">最大金额</span>
                <input name="max" required class="layui-input" placeholder="请输入最大金额" value="{$info.max}">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">手续费</span>
                <input name="pay_commission" required class="layui-input" placeholder="请输入手续费" value="{$info.pay_commission}">
                <p class="help-block">第三方收取的收费，如10%，填写 0.1</p>
            </label>
        </div>
        <div class="layui-form-item block">
            <span class="label-required-prev color-green">二维码</span>
            <p width="auto" class="text-left"><input name="ewm" type="hidden" value="{$info.ewm|default=''}"></p>
            <script> $('[name="ewm"]').uploadMultipleImage()</script>
            <p> 图片只能保存一张,更换请先删除</p>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">{if $info.id==8}充值汇率{else}商户号{/if}</span>
                <input name="mch_id" class="layui-input" placeholder="" value="{$info.mch_id}">
            </label>
        </div>
        <div class="layui-form-item layui-row layui-col-space15">
            <label class="layui-col-xs9 relative">
                <span class="color-green">{if $info.id==8}提现汇率{else}商户密钥{/if}</span>
                <input name="secret" class="layui-input" placeholder="" value="{$info.secret}">
            </label>
        </div>

        <div class="layui-form-item text-center">
            <button class="layui-btn" type="submit">提交</button>
            <button class="layui-btn layui-btn-danger" ng-click="hsitoryBack()" type="button">取消</button>
        </div>

    </div>
</form>


{/block}